package com.mybatis.demo.mapper;

import com.mybatis.demo.domain.User;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @author ZhuYouBin
 * @version 1.0.0
 * @Date: 2022/9/1 16:21
 * @Description
 */
public interface UserMapper {
    /**
     * 批量查询
     * @param userList
     * @return
     */
    int batchInsert(@Param("userList") List<User> userList);

    /**
     * 批量删除
     * @param ids
     * @return
     */
    int batchDelete(@Param("ids") List<Integer> ids);

    /**
     * 批量更新
     * @param userList
     * @return
     */
    int batchUpdate(@Param("userList") List<User> userList);
}
